import mongoose, { Schema, model } from 'mongoose'
interface ReservationInterface {
  id?: mongoose.Types.ObjectId,
  arrivalDate?: string,
  arrivalTime?: string,
  tableSize?: string,
  name?: string,
  phone?: string,
  status?: string,
  createdAt?: string,
}
const userSchema = new Schema({
  arrivalDate: String,
  arrivalTime: String,
  tableSize: String,
  name: String,
  phone: String,
  status: Number,
  createdAt: String,
})
const Reservation = model<ReservationInterface>('Reservation', userSchema)
export { ReservationInterface, Reservation }

